﻿namespace QLGT_2.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;
    using System.Web.Script.Serialization;

    public partial class tbl_DaoTao
    {
        [Key]
        [Column(Order = 0)]
        [StringLength(10, ErrorMessage = "Độ dài tối đa 10 ký tự!")]
        public string MaNganh { get; set; }

        [Key]
        [Column(Order = 1)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int MaMonHoc { get; set; }

        public int NamHoc { get; set; }

        public int KyHoc { get; set; }

        public int SoTinChi { get; set; }

        [ScriptIgnore]
        public tbl_MonHoc tbl_MonHoc { get; set; }
        
        [ScriptIgnore]
        public tbl_Nganh tbl_Nganh { get; set; }
    }
}
